package cn.wolfcode.car.business.mapper;

import cn.wolfcode.car.business.domain.Appointment;
import cn.wolfcode.car.business.query.AppointmentQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AppointmentMapper {
    int updateDeleteComplete(@Param("dictId") Long dictId, @Param("deleteComplete") Integer deleteComplete);

    int insert(Appointment appointment);

    Appointment selectByPrimaryKey(Long id);

    List<Appointment> selectAll();

    int updateByPrimaryKey(Appointment appointment);

    List<Appointment> selectForList(AppointmentQuery qo);

    void updateAndStatusById(@Param("id") Long id, @Param("statusCancel") Integer statusCancel);


    void arrival(@Param("id") Long id, @Param("statusArrival") Integer statusArrival);

    void changeStatus(@Param("appointmentId") Long appointmentId, @Param("statusSettle") Integer statusSettle);
}